// MyFamily - XML based genealogy program.
// Copyright (C) 2006  Doug Swisher
// See the file COPYING.txt for license details.

using System;
using System.Windows.Forms;

using DataModel;


namespace CommonGui
{
    public partial class GedComImportSettingsDialog : Form
    {
        private GedComImportSettings settings = null;


        public GedComImportSettingsDialog()
        {
            InitializeComponent();
        }


        private void GedComImportSettingsDialog_Load(object sender, EventArgs e)
        {
            if (this.settings == null)
            {
                this.settings = new GedComImportSettings();
            }

            this.CreateIndividualsCheckBox.Checked = this.settings.CreateIndividuals;
        }


        public GedComImportSettings Settings
        {
            get { return this.settings; }
            set { this.settings = value; }
        }


        private void CreateIndividualsCheckBox_CheckedChanged(object sender, EventArgs e)
        {
            this.settings.CreateIndividuals = this.CreateIndividualsCheckBox.Checked;
        }
    }
}